export default (safe) => {
  // safe => vue的this对象
  return {
    align: 'left',
    headerAlign: 'center',
    height: 541,
    border: true,
    stripe: true,
    menuWidth: 200,
    searchIndex: 3,
    refreshBtn: false,
    searchShowBtn: false,
    gridBtn: false,
    searchBtnIcon: ' ',
    searchBtnText: '查询',
    emptyBtnIcon: ' ',
    emptyBtnText: '重置',
    labelWidth: 120,
    searchLabelWidth: 120,
    searchIcon: true,
    addBtnText: '这是新增按钮哦',
    addTitle: '新增标题哦',
    column: [
      {
        label: '姓名',
        prop: 'name',
        fixed: true,
        search: true
      },
      {
        label: '性别',
        prop: 'sex',
        type: 'select',
        search: true,
        dicData: [
          {
            label: '男',
            value: '1'
          },
          {
            label: '女',
            value: '2'
          }
        ]
      },
      {
        label: '日期',
        prop: 'datetime',
        type: 'date',
        search: true,
        format: 'yyyy-MM-dd', // 搜索框的日期显示格式，若没有formatter，表格的内容也会是这个格式
        valueFormat: 'yyyy-MM-dd', // 搜索条件的入参值
        html: true,
        formatter: (row, value, formatValue, column) => {
          return value;
        }
      },
      {
        label: '地址',
        prop: 'address',
        search: true
      }
    ]
  };
};
